import Client
import Main_Server
from socket import *


socket_out = socket(AF_INET, SOCK_DGRAM)
socket_in = socket(AF_INET, SOCK_DGRAM)
socket_in.bind(("", 1111))
server = Main_Server.Main_Server(socket_in)

c = Client.Client(input("昵称:"), socket_out)
c.online_massage(1111)

while True:
    return_data = server.run()
    return_data = return_data[0].split("::")
    print("%s" % (return_data[1]))
